package com.example.server.constant;

public enum ResultCodes {
    OK(200, "success"),
    ERROR(400, "error"),
    DIVIDENDISZEROERROR(401, "被除数为0");

    private int code;
    private String message;

    ResultCodes(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode(){ return this.code; }

    public String getMessage(){ return this.message; }
}
